import { Controller, Get, SetMetadata } from '@nestjs/common';
import { AppService } from './app.service';
import { RequireLogin, RequirePermission } from './decorators/custom.decorator';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }

  @Get('ccc')
  @RequireLogin()
  @RequirePermission('ccc')
  ccc() {
    return 'ccc';
  }

  @Get('ddd')
  ddd() {
    return 'ddd';
  }
}
